package com.bestbuy.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

/**
 * @author ThanhNgo
 * 
 */
@Entity
@Table(name = "comment")
public class Comment {
	@Column(name = "IDCOMMENT")
	@Id
	//@GeneratedValue
	private Integer idComment;

	@Column(name = "DATECREATED")
	private String dateCreated;

	@Column(name = "TEXT")
	private String text;

	@Column(name = "ISDELTED")
	private Integer isDeleted;

//	@ManyToOne
//	@JoinColumn(name = "IDPRODUCT")
//	private Product product;

	// @OneToOne
	// @PrimaryKeyJoinColumn
	// private Account account;

	public Comment() {
		// TODO Auto-generated constructor stub
	}

	public Comment(Integer idComment, String dateCreated, String text,
			Integer isDeleted) {
		super();
		this.idComment = idComment;
		this.dateCreated = dateCreated;
		this.text = text;
		this.isDeleted = isDeleted;
//		this.product = product;
	}

}
